
<?php
include_once "function_obj_service.php";

$in_array['Name'] = $_POST['objname'];
$in_array['Protocol'] = $_POST['protocol'];
$in_array['DstStartPort'] = $_POST['dstsport'];
$in_array['DstEndPort'] = $_POST['dsteport'];
$in_array['SrcStartPort'] = $_POST['srcsport'];
$in_array['SrcEndPort'] = $_POST['srceport'];

/*if ($_POST['icmptype'] == "any")
	$in_array['IcmpType'] = "";
else
*/

$in_array['IcmpType'] = $_POST['icmptype'];

if ($_POST['protocol'] == "OTHER")
{
	$in_array['Protocol'] = $_POST['proto_code'];
}

AppendXmlServiceObject($in_array);

echo("<meta http-equiv='refresh'content=0;URL='obj_srv_object_list.php'>");
?>
